<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8" />
		<script src="http://eruda.liriliri.io/eruda.min.js"></script>
		<script>
			// eruda.init();
		</script>
		<script type="text/javascript">
			// 如果判断下来是pc 那么跳转嵌入 iframe h5
			~ function() {
				// 是不是移动端
				var isMobile = /Android|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent);
				// 在iframe内
				var inIframe = window.frames.length != parent.frames.length;
				// const id = window.location.href.match(new RegExp("id=(.*)#/"))[1];
				// console.log(id);
				// return
				if (!isMobile && !inIframe) {
					// window.location.href = `pc.html?id=${id}`
					document.addEventListener('DOMContentLoaded', function() {
						const app = document.getElementById('app')
						app.style.width = '30%'
						app.style.height = '95%'
						app.style.margin = '0 auto'
						app.style.border = '20px #ccc ridge'
						app.style.borderRadius = '20px'
					})
				}
			}()
		</script>

		<script>
			var coverSupport = 'CSS' in window && typeof CSS.supports === 'function' && (CSS.supports('top: env(a)') ||
				CSS.supports('top: constant(a)'))
			document.write(
				'<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0' +
				(coverSupport ? ', viewport-fit=cover' : '') + '" />')
		</script>
		<title></title>
		<!--preload-links-->
		<!--app-context-->
	</head>
	<body>
		<div id="app">
			<!--app-html-->
			<!-- <iceMessage :msgType="'s'" :messageText="'test,message'" @iceClose="isOpen=false" :isOpen="true"/> -->
		</div>
		<script type="module" src="/main.js"></script>
	</body>
</html>